package org.jeecg.modules.demo.news.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: jk_news
 * @Author: jeecg-boot
 * @Date:   2025-05-18
 * @Version: V1.0
 */
@Data
@TableName("jk_news")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="jk_news")
public class JkNews implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private Integer id;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @Schema(description = "标题")
    private String title;
	/**副标题*/
	@Excel(name = "副标题", width = 15)
    @Schema(description = "副标题")
    private String subtitle;
	/**新闻分类*/
	@Excel(name = "新闻分类", width = 15,dicCode = "category_type")
    @Schema(description = "新闻分类")
    @Dict(dicCode = "category_type")
    private String newsType;
	/**作者*/
	@Excel(name = "作者", width = 15)
    @Schema(description = "作者")
    private String author;
	/**来源*/
	@Excel(name = "来源", width = 15)
    @Schema(description = "来源")
    private String docSource;
	/**图片*/
	@Excel(name = "图片", width = 15)
    @Schema(description = "图片")
    private String img;
	/**内容*/
	@Excel(name = "内容", width = 15)
    @Schema(description = "内容")
    private String content;
	/**置顶*/
    @Excel(name = "置顶", width = 15,replace = {"是_Y","否_N"} )
    @Schema(description = "置顶")
    private String upFlag;
	/**评论标志*/
    @Excel(name = "评论标志", width = 15,replace = {"是_Y","否_N"} )
    @Schema(description = "评论标志")
    private String talkFlag;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @Schema(description = "排序")
    private Integer sortIndex;
	/**点击次数*/
	@Excel(name = "点击次数", width = 15)
    @Schema(description = "点击次数")
    private Integer clickCount;
	/**附件*/
	@Excel(name = "附件", width = 15)
    @Schema(description = "附件")
    private String fixFile;
	/**是否启用*/
    @Excel(name = "是否启用", width = 15,replace = {"是_Y","否_N"} )
    @Schema(description = "是否启用")
    private String isEnabled;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "createTime")
    private Date createTime;
	/**createBy*/
    @Schema(description = "createBy")
    private String createBy;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "updateTime")
    private Date updateTime;
	/**updateBy*/
    @Schema(description = "updateBy")
    private String updateBy;

    /** 新增：新闻分类id，对应数据库表中的category_id字段 */
    @Schema(description = "新闻分类id")
    private Long category_id;

}
